<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "banner".
 *
 * @property integer $id
 * @property string $banner_image
 * @property string $notice
 * @property string $ts
 * @property string $gotourl
 */
class Banner extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'banner';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ts'], 'safe'],
            [['banner_image', 'notice'], 'string', 'max' => 255],
            [['gotourl'], 'string', 'max' => 1000],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'banner_image' => '顶部banner图',
            'notice' => '广播通知文字',
            'ts' => 'Ts',
            'gotourl' => '顶部banner图点击跳转链接',
        ];
    }
}
